#ifndef FILEIO_H
#define FILEIO_H

#include "user.h"
#include <QString>
#include <QHash>
#include <QFile>
#include <QDataStream>
#include <QApplication>
#include <QDir>
class FileIO
{
private:
    static QFile* userFile;
    static QHash<QString,User>* userData;
    bool getUserFile();
    void getAllUser();

public:

    bool checkAcount(QString Account);
    bool checkPassword(User user);
    bool insertPassword(User user);
};


#endif // FILEIO_H
